<template>
  <swiper class="topImg-style">
    <swiper-item v-for="item in topImg">
      <img :src="item" alt="">
    </swiper-item>
  </swiper>
</template>

<script>
import {Swiper, SwiperItem} from 'components/common/swiper'

export default {
  data() {
    return {};
  },
  components: {
    Swiper,
    SwiperItem
  },
  props: {
    // 获取图片数据
    topImg: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
  .topImg-style {
    height: 300px;
    overflow: hidden;
  }
</style>